package com.hatricks.is.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @packageName: com.hatricks.common.enums
 * @className: RuleTemplateEnums
 * @author: yanyuhui
 * @date: 2023/1/8 9:55
 * @description:
 */
@Getter
@AllArgsConstructor
public enum RuleTemplateEnums {


    /**
     * 唯一值校验
     */
    UNIQUE_VALUE("unique_value") {
    },

    /**
     * 数据空值校验
     */
    DATA_EMPTY("data_empty") {
    },

    /**
     * 字符长度校验
     */
    CHAR_ARRAY_LENGTH("char_array_length") {
    },

    /**
     * 手机号码校验
     */
    PHONE_NUMBER("phone_number") {
    },

    /**
     * 身份证号码校验
     */
    ID_CARD("id_card") {
    },

    /**
     * 正则表达式校验
     */
    REGULAR("regular") {
    },;

    public static final String UNIQUE_VALUE_CHECK = "unique_value";
    public static final String DATA_EMPTY_CHECK = "data_empty";
    public static final String CHAR_ARRAY_LENGTH_CHECK = "char_array_length";

    public static final String PHONE_NUMBER_CHECK = "phone_number";
    public static final String ID_CARD_CHECK = "id_card";
    public static final String REGULAR_CHECK = "regular";
    private final String name;
}
